const fs = require('fs');
fs.rename('./logs/hello.log', './logs/hello1.log', (error)=>{
    if(error){
        console.log(error);
    }
    else{
        console.log('重名了成功');
    }
})